home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 1557 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: vb.franken.de!volker
  2. From: volker@vb.franken.de (Volker Barthelmann)
  3. Subject: Re: vbcc/vc --> ixemul.library ?
  4. Newsgroups: comp.sys.amiga.programmer
  5. References: <rbaron.hxm9@burner.com>
  6. X-Newsreader: TIN [AMIGA 1.3 950726BETA PL0]
  7. Message-ID: <volker.0ek2@vb.franken.de>
  8. Date: 20 Jan 96 02:17:32 MET
  9. Organization: home
  10.  
  11. Ish Hallin (rbaron@burner.com) wrote:
  12. :         After installing the vbcc package the other day, along with PhxAss,
  13. : PhxLnk, and dcpp, I tried to compile some simple programs.  Up popped a
  14. : requester informing me that I needed the 'ixemul.library'.  No problem, I
  15.  
  16. The distributed vbcc executable was compiled with gcc and therefore needs
  17. ixemul to run.
  18.  
  19. : thought, I'll just go get it from that FreshFish CD of mine.  After installing
  20. : ixemul, I realized that this probably meant it needed to link with ixemul in
  21. : order to produce my code, which it did, producing horribly slow programs.
  22.  
  23. No. vbcc comes with its own libraries. You don't even need ixemul.library
  24. to run vbcc if You e.g. recompiled it with itself (but the gcc-compiled
  25. version is faster at the moment).
  26.  
  27. :         My question is this:  How do I avoid linking with ixemul?
  28.  
  29. If You want to compile and link foo.c simply type
  30.  
  31. vc foo.c -o foo
  32.  
  33. For slightly better code add -O2.
  34. If You want to generate code for higher CPUs/FPUs add -cpu=<cpu> and/or
  35. -fpu=<fpu>, e.g. -cpu=68020 -fpu=68881 or -cpu=68040 -fpu=68040.
  36. If Your program uses floating point add -lmieee if You did not specify
  37. an FPU or -lm881 if You did.
  38.  
  39. The resulting executable foo will not need ixemul.library.
  40.  
  41. Volker
  42.  
  43.